package cn.mxz.config;


import cn.mxz.interceptor.LoginInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 作者；朱洪旭
 * 时间；2021/11/24 16:07
 */
@Configuration
public class ProductConfig implements WebMvcConfigurer {
@Override
    public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new LoginInterceptor()).addPathPatterns("/**")
            .excludePathPatterns("/userlogin/**","/verification/**","/requestlist/**","/GoodDetails/**","/categorylevel/**","/inte","/finduser/**","/alipay/**");
    }
}
